An Object-Oriented Programming System in TEX

نویسنده

  • William Baxter
چکیده

This paper describes the implementation of an object-oriented programming system in TEX. The system separates formatting procedures from the document markup. It offers design programmers the benefits of object-oriented programming techniques. The inspiration for these macros comes from extensive book-production experience with W&X. This paper is a companion to Arthur Ogawa's "Object-Oriented Programming, Descriptive Markup, and TEX". The macros presented here constitute the fruit of a struggle to produce sophisticated books in a commercial environment. They run under either plain TEX or LATEX, but owe their primary inspiration to LATEX, especially in the separation of logical and visual design. The author hopes that future TEX-based document production systems such as LATEX^ and NTS will incorporate these techques and the experience they represent. Throughout this paper we refer to book production with W X . Many of the comments apply equally well to other TEX-based document processing environments. Design and Production Perspectives Certain problems routinely crop up during book production with LATEX. The majority fall into two general categories: those related to the peculiarities of a particular job and those regarding the basic capabilities of the production system. Peculiar documents. Strange, and sometimes even bizarre, element variants often occur within a single document. Without extremely thorough manuscript analysis these surprise everybody during composition, after the schedules have been set. The author received the following queries during production of a single book: 1. What is the proper way to set Theorem 2.1' after Theorem 2.1? 2. Small icons indicating the field of application accompany certain exercise items. How do we accommodate these variations? 3. Ths book contains step lists numbered Step 1, Step 2, . . . , and other lists numbered Rhubarb 1, Rhubarb 2, . . . How do we code these? Each variation requires the ability to override the default behavior of the element in question, or to create a new element. This is not difficult to accomplish ad hoc. The design programmer can implement prefur commands modifying the default behavior of a subsequent command or environment, add additional optional arguments, or create new commands and environments. But these solutions demand irnmediate intervention by the design programmer and also require that the user learn how to handle the special cases. A markup scheme in which optional attributes accompany elements provides a simple, consistent, and extensible mechanism to handle t h s type of production difficulty. Instead of the standard LATEX environment markup \begi n{theorem} [OOPS, A Theorem] . . . \end{theorem)

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Modelsaz: An Object-Oriented Computer-Aided Modeling Environment

Modeling and simulation of processing plants are widely used in industry. Construction of a mathematical model for a plant is a time-consuming and error-prone task. In light of extensive advancements in computer science (both hardware and software), computers are becoming a necessary instrument in industrial activities. Many software tools for modeling, simulation and optimization of proces...

متن کامل

Object - Oriented Programming , Descriptive Markup , and TEX Arthur

I describe a synthesis withn TEX of descriptive markup and object-oriented programming. An underlying formatting system may use a number of different collections of user-level markup, such as LATEX or SGML. I give an extension of WX's markup scheme that more effectively addresses the needs of a production environment. The implementation of such a system benefits from the use of the model of obj...

متن کامل

Declarative Semantics in Object-Oriented Software Development - A Taxonomy and Survey

One of the modern paradigms to develop an application is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles in applications. In an application, we must distinguish between procedural semantics and declarative semantics for their implementation in a specific programming language. For the procedural semantics, we can write a ...

متن کامل

On Attributes of Objects in Object-Oriented Software Analysis

One of the modern paradigms to develop a system is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles. There is a sequence of activities to develop an analysis model. In the first step, we work in developing an initial use case model. Then in the second step, they identify a number of concepts and build a glossary of partic...

متن کامل

Objects Identification in Object-Oriented Software Development - A Taxonomy and Survey on Techniques

Analysis and design of object oriented is onemodern paradigms for developing a system. In this paradigm, there are several objects and each object plays some specific roles. Identifying objects (and classes) is one of the most important steps in the object-oriented paradigm. This paper makes a literature review over techniques to identify objects and then presents six taxonomies for them. The f...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011